package com.zzchangfu.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @program: spring-ai
 * @description: 查询时间
 * @author: liuChangFu
 * @data: 2025-05-29 17:04
 **/
@Service
public class TimeService {

    @Tool(description = "用于查询当前时间")
    public String getTime() {
        return "现在时间是：" + LocalDateTime.now();
    }
}
